package com.nhim.cms.dao;

import java.util.List;

import com.nhim.cms.domain.ContentTypeElementDefinition;
import com.nhim.core.dao.ICoreDAO;



/**
 * Interface for ElementDefinitionDAO.
 * 
 * @author Huy Lieu TA
 */
public interface IContentTypeElementDefinitionDAO  extends ICoreDAO<Integer, ContentTypeElementDefinition> {
	
	/**
	 * Find all ContentTypeElementDefinition entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the ContentTypeElementDefinition property to query
	 * @param value
	 *            the property value to match
	 * @return List<ContentTypeElementDefinition> found by query
	 */
	public List<ContentTypeElementDefinition> findByProperty(String propertyName,
			final Object value);

	public List<ContentTypeElementDefinition> findByContentTypeId(Integer id);
	public ContentTypeElementDefinition findByContentTypeIdElementDefinitionId(Integer contentTypeId, Integer elementDefinitionId);

}
